﻿using System;
using System.Collections.Generic;
using System.Text;
using Argotic.Syndication;

namespace WeMakeSP.WebComponents.RSSAdvancedReaderWebPart
{
    /// <summary>
    /// The interface for RSS advanced reader model.
    /// </summary>
    public interface IRSSAdvancedReaderModel
    {
        #region Methods

        /// <summary>
        /// Gets the feed.
        /// </summary>
        /// <param name="configuration">The configuration.</param>
        /// <returns>A collection of feeds.</returns>
        RSSAdvancedReaderFeed GetFeed(RSSAdvancedReaderFeedConfiguration configuration);

        /// <summary>
        /// Gets the feeds.
        /// </summary>
        /// <param name="urls">The feed urls.</param>
        /// <returns>A collection of feeds.</returns>
        RSSAdvancedReaderFeedCollection GetFeeds(string[] urls);

        /// <summary>
        /// Gets the feeds.
        /// </summary>
        /// <param name="configurations">The configurations.</param>
        /// <returns>A collection of feeds.</returns>
        RSSAdvancedReaderFeedCollection GetFeeds(RSSAdvancedReaderFeedConfigurationCollection configurations);

        /// <summary>
        /// Gets the items.
        /// </summary>
        /// <param name="url">The feed URL.</param>
        /// <returns>A collection of feed items.</returns>
        RSSAdvancedReaderFeedItemCollection GetItems(string url);

        #endregion
    }
}
